<?php 
  require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $clients = query('SELECT * FROM companies LEFT JOIN clients ON clients.id = companies.representative_id
    WHERE company_id = ?',$_GET['id']);
          
    $client = $clients[0];
    renderWithoutHeader("Customers/Companies/view.php", array("client"=>$client));

  }  

?>